#include "pthreadpool.h"
int pthreadshare_init(share_t *share,int workernum,char *filename)
{
    share->filename=filename;
    pthread_mutex_init(&share->mutex,NULL);
    pthread_cond_init(&share->cond,NULL);
    tidinit(&share->ptidarr,workernum);
    bzero(&share->queue,sizeof(queue_t));
    share->exitflag = 0;
    return 0;
}
